package me.CSmethod.demo.lianxi;

public class Text12 {
    public static void main(String[] args) {
        int[][] a = {{22, 66, 44},
                {77, 33, 88},
                {25, 45, 65},
                {11, 66, 99}};
        int ans = 0;
        for (int i = 0; i < a.length; i++) {
            int sum = 0;
            for (int i1 = 0; i1 < a[i].length; i1++) {
                sum += a[i][i1];
                ans += a[i][i1];
            }
            System.out.println("第" + (i + 1) + "季度的和为" + sum);
        }
        System.out.println("全年的和为" + ans);

    }
}
